﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CMS.BLL;

public partial class news_msn_DisplayContent : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.IsPostBack)
        {
            string stock =string.IsNullOrEmpty( Request["stock"])?"000001":Request["stock"];
            DateTime endDate =string.IsNullOrEmpty(Request["enddate"])?DateTime.Parse("2011-01-01"):DateTime.Parse( Request["enddate"]);
            YearProfileBLL bll = new YearProfileBLL();
            var c = bll.GetOne(stock, endDate);
            string content = c.Content.Replace(" ", "&nbsp;").Replace(" ", "&nbsp;&nbsp;").Replace("\r\n", "<br/>");
            Localize1.Text = content;
            lblStock.Text = stock;
        }
    }
}